<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateCommandeclientTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateCommandeclientLabel_idreservation}" for="idreservation" />
                    <h:inputText id="idreservation" value="#{commandeclientController.selected.idreservation}" title="#{bundle.CreateCommandeclientTitle_idreservation}" required="true" requiredMessage="#{bundle.CreateCommandeclientRequiredMessage_idreservation}"/>
                    <h:outputLabel value="#{bundle.CreateCommandeclientLabel_quantite}" for="quantite" />
                    <h:inputText id="quantite" value="#{commandeclientController.selected.quantite}" title="#{bundle.CreateCommandeclientTitle_quantite}" required="true" requiredMessage="#{bundle.CreateCommandeclientRequiredMessage_quantite}"/>
                    <h:outputLabel value="#{bundle.CreateCommandeclientLabel_dateReser}" for="dateReser" />
                    <h:inputText id="dateReser" value="#{commandeclientController.selected.dateReser}" title="#{bundle.CreateCommandeclientTitle_dateReser}" required="true" requiredMessage="#{bundle.CreateCommandeclientRequiredMessage_dateReser}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateCommandeclientLabel_statusreser}" for="statusreser" />
                    <h:inputText id="statusreser" value="#{commandeclientController.selected.statusreser}" title="#{bundle.CreateCommandeclientTitle_statusreser}" required="true" requiredMessage="#{bundle.CreateCommandeclientRequiredMessage_statusreser}"/>
                    <h:outputLabel value="#{bundle.CreateCommandeclientLabel_status}" for="status" />
                    <h:inputText id="status" value="#{commandeclientController.selected.status}" title="#{bundle.CreateCommandeclientTitle_status}" required="true" requiredMessage="#{bundle.CreateCommandeclientRequiredMessage_status}"/>
                    <h:outputLabel value="#{bundle.CreateCommandeclientLabel_idinscrit}" for="idinscrit" />
                    <h:selectOneMenu id="idinscrit" value="#{commandeclientController.selected.idinscrit}" title="#{bundle.CreateCommandeclientTitle_idinscrit}" required="true" requiredMessage="#{bundle.CreateCommandeclientRequiredMessage_idinscrit}">
                        <f:selectItems value="#{prospectController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateCommandeclientLabel_iditem}" for="iditem" />
                    <h:selectOneMenu id="iditem" value="#{commandeclientController.selected.iditem}" title="#{bundle.CreateCommandeclientTitle_iditem}" required="true" requiredMessage="#{bundle.CreateCommandeclientRequiredMessage_iditem}">
                        <f:selectItems value="#{itemController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{commandeclientController.create}" value="#{bundle.CreateCommandeclientSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{commandeclientController.prepareList}" value="#{bundle.CreateCommandeclientShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateCommandeclientIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
